package cn.lg.soar.boot.fc.service;

import cn.lg.soar.common.model.HttpResult;
import cn.lg.soar.database.base.service.IBaseService;
import cn.lg.soar.boot.fc.entity.Finance;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 财务表
 * @author ZhuanZ（无密码）
 * @since 2025-01-18
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public interface FinanceService extends IBaseService<Finance> {

    /**
     * 账单缴费
     */
    @Transactional
    public HttpResult<Void> billPayment(Finance finance);

    /**
     * 生成账单
     */
    @Transactional
    public HttpResult<Void> generateBill(Finance finance);

    /**
     * 导出
     */
    public void exports(List<Finance> list, HttpServletResponse resp);

    /**
     * 导入
     */
    public HttpResult<Void> imports(MultipartFile files);
}
